#include "DetourLog.h"

//create by keefor on 20190717
void(*Debug::Log)(char* message, int iSize);
void Debug::L(char* fmt, ...) {

	if (Debug::Log == NULL)return;

	char acLogStr[512];// = { 0 };

	va_list ap;

	va_start(ap, fmt);
	vsprintf(acLogStr, fmt, ap);
	va_end(ap);

	Debug::Log(acLogStr, (int)strlen(acLogStr));
}

void SetupLogDelegate(void(*Log)(char* message, int iSize)) 
{
	Debug::Log = Log;
}